package controller

import (
	"html/template"
	"net/http"

	"gitee.com/shuwenhe/shuwen-mall/dao"
)

func GetItems(w http.ResponseWriter, r *http.Request) {
	items, _ := dao.GetItems()
	t := template.Must(template.ParseFiles("views/pages/manager.html"))
	t.Execute(w, items)
}
